import e from 'cesium/Source/Core/GroundPolylineGeometry.js';
import r from 'cesium/Source/Core/GeometryInstance.js';
import o from 'cesium/Source/Core/Cartesian3.js';
import i from 'cesium/Source/Core/Color.js';
import m from 'cesium/Source/Scene/GroundPolylinePrimitive.js';
import n from 'cesium/Source/Scene/PolylineMaterialAppearance.js';
import s from 'cesium/Source/Scene/Material.js';
const t = (t, c) => {
  const a = new e({ positions: o.fromDegreesArray(c.lonlat), width: c.width || 4 });
  const u = new m({
    geometryInstances: new r({ geometry: a }),
    appearance: new n({ material: new s({ fabric: { type: 'Color', uniforms: { color: i.RED } } }) }),
    asynchronous: !0,
  });
  return t.scene.primitives.add(u);
};
export { t as default };
